<table style="width:100%; height:100%;"><tr><td style="text-align:center; vertical-align:middle">
        <form action="<?= $_SERVER['PHP_SELF']?>" method="POST">
        <div class="box" style="width:700px;">
            <div class="title"><?= $title ?></div>            
            <?
                if(isset($errors)){
                    echo "<div class=\"errors\"><ul>";
                    foreach($errors as $error) {
                        echo "<li>$error</li>";
                    }
                    echo "</ul></div>";
                }
            ?>            
            <div class="line">
                <span style="width:150px;">Название:</span>
                <input style="width:500px;" type="text" name="name" value="<?= Arr::get($data, 'name') ?>"/>
            </div>
            <div class="line">
                <span style="width:150px;">Заголовок:</span>
                <input style="width:500px;" type="text" name="html_title" value="<?= Arr::get($data, 'html_title') ?>"/>
            </div>
            <div class="line">
                <span style="width:150px;">Ключевые слова:</span>
                <input style="width:500px;" type="text" name="html_keyword" value="<?= Arr::get($data, 'html_keyword') ?>"/>
            </div>
            <div class="line">
                <span style="width:150px;">Опиcание:</span>
                <input style="width:500px;" type="text" name="html_description" value="<?= Arr::get($data, 'html_description') ?>"/>
            </div>
            <div class="line">
                <span style="width:150px;">Содержание:</span>
                <textarea style="width:500px; height:400px;" name="content"><?= Arr::get($data, 'content') ?></textarea>
            </div>
            <input type="hidden" name="id" value="<?= Arr::get($data, 'id', NULL)?>">
            <div class="toolbar">
                <input type="submit" value="<?= $button ?>">
            </div>            
        </div>
        </form>
        </td></tr></table>